package com.yjd.comm.wal.service;

import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.wal.model.WalCashOutModel;

/**
 * <b>description</b>：转出记录业务接口<br>
 * <b>time</b>：2015-08-19 10:54:55 <br>
 * <b>author</b>：  nmd
 */
public interface IWalCashOutService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public WalCashOutModel insert(WalCashOutModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(WalCashOutModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long id) throws Exception;

	/**
	 * 是否达到转出上限.每天 次数 在SYS_PARAM 配置
	 * 
	 * 返回:boolean
	 * @exception
	 * @since JDK 1.7
	 */
	public boolean isAchieveMaxCashoutTimes(Long user_id)throws Exception;
	
}
